#include "simple_js_handle.h"
#include "include/wrapper/cef_helpers.h"

bool CefJSHandler::Execute(const CefString& name, CefRefPtr<CefV8Value> object, 
    const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval, CefString& exception)
{
    try{
        if (name == "send"){
            retval = CefV8Value::CreateString("CefJSHandler::Execute");
            return true;
        }
        else
            return false;
        return false;
    }catch(std::exception){
        return false;
    }
}